{extend name="public/world"}
{block name="title"}添加部门{/block}
{block name="style"}
<style type="text/css">
    .layui-form-label {width:110px;}
</style>
{/block}
{block name="container"}
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
    <div class="layui-card" style="padding: 20px 0 0 0;height:425px;">
        <div class="layui-form-item">
            <label class="layui-form-label label-required">部门/职位</label>
            <div class="layui-input-inline">
                <input type="text" name="role_name" value="" lay-verify="required" placeholder="请输入部门/职位名称" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">上级部门</label>
            <div class="layui-input-inline">
                <select name="parent" lay-verify="required">
                    <option value="0">一级部门</option>
                    {volist name="parents" id="name"}
                    <option value="{$key}"{if $key==$pid} selected{/if}>{$name}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item" lay-filter="sys">
            <label class="layui-form-label">属性</label>
            <div class="layui-input-block">
                <input type="radio" name="sys" value="0" title="部门" checked>
                <input type="radio" name="sys" value="1" title="职位">
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-front-submit" id="LAY-front-submit" value="确认">
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    //JavaScript代码区域
    layui.use('form', function() {
        var $ = layui.$
            ,form = layui.form;
    });
</script>
{/block}